package com.SocketDemo.TCPTest01.TCPTest;

/*
    服务器，接收到数据写入文本文件
* */

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class ServerDemo {
    public static void main(String[] args) throws IOException {
        ServerSocket ss = new ServerSocket(10000);

        while (true) {
            Socket s = ss.accept();

            Thread thread = new Thread(new ServerTread(s));
            thread.start();
        }

    }
}
